﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace WizzardTheGame
{
    class GameEnvironment:IDrawable
    {
        private Object3D envModel;
        private Vector3 position;
        private bool isVisible;

        #region Properties

        public Object3D EnvModel
        {
            get { return envModel; }
            set { envModel = value; }
        }

        public Vector3 Position
        {
            get { return position; }
            set {
                position = value;
                envModel.Position = position;
            }
        }

        public bool IsVisible
        {
            get { return isVisible; }
            set { isVisible = value; }
        }
        
        #endregion

        public GameEnvironment()
        {
            if(EnvModel == null) EnvModel = new Object3D();
            Position = Vector3.Zero;
            IsVisible = true;
            envModel.Rotation = GameWorld.STANDARD_ROTATION;
        }

        public GameEnvironment(string path):base()
        {
            EnvModel = new Object3D(path);
        }

        #region IDrawable Members

        public void Draw()
        {
            EnvModel.Draw();
        }

        #endregion
    }
}
